﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Regexs
{
    /// <summary>
    /// 正则类
    /// </summary>
    public static class Regular
    {
        /// <summary>
        /// 名称
        /// </summary>
        public const string Name = "^.{2,16}$";

        /// <summary>
        /// 手机号
        /// </summary>
        public const string Phone = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$";

        /// <summary>
        /// 密码
        /// </summary>
        public const string PassWord = "^[A-Za-z0-9]{3,16}$";

        /// <summary>
        /// 邮箱
        /// </summary>
        public const string Email = "^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-z]{2,}$";

        /// <summary>
        /// 描述
        /// </summary>
        public const string Description = "^.{2,35}$";

        /// <summary>
        /// URK
        /// </summary>
        public const string URL = "^.{2,36}$";

        /// <summary>
        ///校验数字
        /// </summary>
        public const string Number = "^(0|[1-9][0-9]*){1,6}$";

      
    }
}

